/* base */
html,
body {
  margin: 0;
  padding: 0;
  -webkit-text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  box-sizing: border-box;
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica', 'Arial', sans-serif;
  &::-webkit-scrollbar-track {
    border-radius: 4px;
    background-color: var(--o-color-bg2);
  }

  &::-webkit-scrollbar {
    width: 6px;
    background-color: var(--o-color-bg2);
  }

  &::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background: var(--o-color-division1);
  }
}

:root.dark {
  --el-color-primary: var(--o-color-trafficpurple8);
}

*,
:after,
:before {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}

img {
  vertical-align: top;
}

[tabindex] {
  outline: none;
}

a {
  color: var(--o-color-link1);
  text-decoration: none;
  &:active {
    color: var(--o-color-link3);
  }
}

blockquote,
figure,
form,
h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}
dd,
dl,
li,
ol,
ul {
  margin: 0;
  padding: 0;
}

ol,
ul {
  list-style: none outside none;
}
.overflow {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 400;
}

// 顶部偏移
html {
  scroll-padding-top: 80px;
}

::target-text {
  background-color: var(--o-color-brand1);
  color: #fff;
}
